# 作者:何恺
# 2025年02月18日16时35分59秒
# 2557170485@qq.com
def jsum():
    """
    奇数求和
    :return:
    """
    print(sum([x for x in range(1,101) if x%2 ==1]))

def ninenine():
    """
    九九乘法表
    :return:
    """
    for i in range(1,10):
        for j in range(1,i+1):
            print(f"{i}*{j}={i*j}",end=" ")
        print()


def onesum():
    """
    找二进制1的个数
    :return:
    """
    num = int(input("输入整数："))
    if num>=0:
        print(bin(num).count('1'))
    else:
        a = 64-bin(~num).count('1')
        print(a)


a = 6
print(bin(~a))










